#ifndef UIDMANAGER_H
#define UIDMANAGER_H

#include <QHash>
#include <QObject>

class UidManager : public QObject
{
    Q_OBJECT
public:
    explicit UidManager(QObject *parent = 0);
    ~UidManager();
    static UidManager * instance();

    int uniqueIndentifier(const QString &id);
    QString stringForUniqueIndentifier(int id) const;

private:
    static UidManager * m_instance;
    QHash<QString, int> m_uniqueIdentifiers;
};

#endif // UIDMANAGER_H
